/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util;

import java.io.File;

/**
 *
 * @author bennyl
 */
public class FileSystems {

    public static boolean deleteFileOrDirectory(File f) {
        if (f.isDirectory()) {
            for (File ff : f.listFiles()) {
                deleteFileOrDirectory(ff);
            }
        }

        return f.delete();
    }
}
